package com.qf.exception;
//
//
//import com.qf.utils.R;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.RestControllerAdvice;


////@ControllerAdvice
//@RestControllerAdvice
//public class MyGlobalExceptionHandler {
//    //@ExceptionHandler(value = {ArithmeticException.class})
//    @ExceptionHandler(Exception.class)
//    //@ResponseBody
//    public R handlerException(Exception e){
//        System.out.println("全局异常处理的打印");
//        return R.fail(500,e.getMessage());
//    }
//}
